public class SearchNode {
	public Tile position;

	private int g;
	private int h;
	public SearchNode parent;

	public SearchNode(Tile position, int g, int h, SearchNode parent) {
		this.position = position;
		this.g = g;
		this.h = h;
		this.parent = parent;
	}

	public SearchNode(int row, int col, int g, int h, SearchNode parent) {
		this(new Tile(row, col), g, h, parent);
	}

	public Tile getPosition() {
		return position;
	}

	public void setPosition(Tile position) {
		this.position = position;
	}

	public SearchNode getParent() {
		return parent;
	}

	public void setParent(SearchNode parent) {
		this.parent = parent;
	}

	public SearchNode() {
		this(new Tile(0, 0), 0, 0, null);
	}

	public int getF() {
		return g + h;
	}

	public int getG() {
		return g;
	}

	public void setG(int g) {
		this.g = g;
	}

	public int getH() {
		return h;
	}
}